<template>
	<view class="goodsDetails flex">
		<image :src="Info.image" class="goodsImage" mode="aspectFill"></image>
		<view class="content spaceBetween">
			<view class="header " >
				<view class="name">
					{{ Info.name }}
				</view>
				<view class="spec_value_str">
					{{ Info.spec_value_str }}
				</view>
			</view>
			
			<view class="price">
				<text class="priceNum">{{ Info.goods_price }}</text>
				<text class="num">x{{ Info.total_num }}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'goodsDetails',
		props: {
			Info: {
				type: Object,
				default: () => {},
			},
		},
		data() {
			return {};
		},
	};
</script>

<style lang="scss" scoped>
	.goodsDetails {
		width: 690rpx;
		height: 220rpx;
		background: #ffffff;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		align-items: center;
		margin: 0 auto;
		.goodsImage {
			width: 160rpx;
			height: 160rpx;
			margin: 0 $margin-width;
		}
		.content {
			overflow: hidden;
			height: 160rpx;
			flex-direction: column;
			.header{
				.name {
					font-size: $uni-font-size-13;
					color: #000000;
				}
				.spec_value_str {
					font-size: $uni-font-size-12;
					color: #999999;
				}
			}
			
			.price{
				.priceNum{
					font-weight: bold;
					font-size: $uni-font-size-14;
					color: $price-color;
				}
				.num{
					font-size: $uni-font-size-12;
					color: #999999;
					margin-left: 5rpx;
					display: inline-block;
				}
			}
		}
	}
</style>
